//
// Created by lingzhitech on 25-9-15.
//

#include <iostream>
#include <list>
#include <ostream>
#include <string>
#include <vector>

int main() {
    std::list<const char *> lst{"abc", "def", "ghi"};
    std::vector<std::string> vs;
    vs.assign(lst.cbegin(), lst.cend());
    for (auto p: vs) {
        std::cout << p << std::endl;
    }
}
